home *** CD-ROM | disk | FTP | other *** search
/ Czech Logic, Card & Gambling Games / Logické hry.iso / hry / Fish Fillets / script / init.lua next >
Text File  |  2005-07-16  |  536b  |  24 lines

  1. -- There is place to customize game before start
  2.  
  3. --NOTE: hack for win32, lang Czech = cs
  4. --NOTE: first five characters from LC_CTYPE are stored in "lang" param
  5. local lang = string.sub(getParam("lang") or "", 1, 5)
  6. local winCodes = {
  7.     Czech = "cs",
  8.     Engli = "en",
  9.     Frenc = "fr",
  10.     Germa = "de",
  11.     Itali = "it",
  12.     Polis = "pl",
  13. }
  14.  
  15. if winCodes[lang] then
  16.     setParam("lang", winCodes[lang])
  17. end
  18.  
  19. --NOTE: default speech is 'cs' (there are cs/*.ogg files)
  20. if getParam("speech") == nil then
  21.     setParam("speech", "cs")
  22. end
  23.  
  24.